<ul><?php
$config = Zend_Registry::get('config');
foreach ($this->messages as $message) {
	$user = Message::getUser($message);?>
	<li>
	
	<img src="<?php echo $config->baseurl; ?>/img/nopic_t.png" width="32px" height="32px" class="thumbPic"/>
	<div class="commentTextColumn">
	<div class="commentHeader">
	<strong><?php echo $this->showUserOrEmail($user); ?></strong>
	<span class="date" > <?php echo $message->created; ?></span>
	
	</div>
	
	<div class="commentContent">
	" <?php echo $message->message; ?> "
	<?php 	
 	if (($this->user_data!=null && $this->user_data->id == $this->invitation_user_id) 
 	|| ($this->user_data!=null &&$this->user_data->id == $message->user_id) 
 	|| $this->invited_user_id == $message->user_id) {
	 	$url = $this->url(array('controller'=>'invitation', 'action'=>'deletecomment', 'iid'=>$this->invitation_id, 'uid'=>$this->invited_user_id, 'mid'=>$message->id));
 		echo "<a mid=".$message->id." class='deleteMessage' href=".$url.">删除</a>";
 	}
 	?></div>
	
	</div>
	
	</li>
<?php } ?></ul>